# -=- encoding: UTF-8

from django.contrib import admin

from adl.guild.models import *

class RankAdmin(admin.ModelAdmin):
    list_display = ('guild', 'arsenal_id', 'name', 'order', 'order_link') 
    ordering = ('order',)
    list_filter = ('guild',)
admin.site.register(Rank, RankAdmin)

class CharacterAdmin(admin.ModelAdmin):
    list_display = ('guild', 'name', 'date_recorded', 'level', 'gender', 'klass', 'race', 'rank', 'user')
    ordering = ('level',)
    list_filter = ('guild', 'level', 'gender_id', 'class_id', 'race_id', 'rank', 'user')
    list_display_links  = ('name',)
admin.site.register(Character, CharacterAdmin)